package com.yswy.app.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yswy.common.vo.dto.PayOrderVo;
import com.yswy.common.vo.dto.RetuenPayOrderVo;
import com.yswy.domain.entity.*;

public interface PayOrderService extends IService<PayOrder> {
    //生成订单
    RetuenPayOrderVo addPayOrder(PayOrderVo payOrderVo, Long userId, String ip);
    public void test(Long payOrderId);
    //生成周期付款收单订单订单
    PayOrder addAgreementOrder(AgreementOrder agreementOrder ,AgreementOrderPayLog agreementOrderPayLog );

    //轮询取消待付款超时订单
    void delPayOrder();
    //取消周期付款收单订单订单
    void delAgreementOrder(PayOrder payOrder);
    //付款回调业务逻辑
    void callbackPayOrder(Integer payTerrace , PayOrderZfbLog payOrderZfbLog , PayOrderWxLog payOrderWxLog);
    //验证是否付款成功
    String checkingPayOrder(String orderId, Long userId);
    //判断是否购买过订单
    Boolean isPayOrder(Long userId);

}
